helpful-lighter-47323
06/10/2025, 10:24 AMprehistoric-airplane-85682
06/10/2025, 1:29 PMhelpful-lighter-47323
06/10/2025, 1:43 PMjavascript
<!-- In your <head> tag -->
<script src="https://cdn.botpress.cloud/webchat/v3.0/inject.js"></script>
<style>
#webchat .bpWebchat {
position: unset;
width: 100%;
height: 100%;
max-height: 100%;
max-width: 100%;
}
#webchat .bpFab {
display: none;
}
</style>
<!-- In your <body> tag -->
<script>
document.addEventListener('DOMContentLoaded', () => {
window.botpress.on("webchat:ready", () => {
window.botpress.open();
});
window.botpress.init({
"botId": "d88a6751-c573-4b5e-ab0e-7307345af14a",
"configuration": {
"version": "v1",
"composerPlaceholder": "Write your message...",
"botName": "Kaptain AI",
"botDescription": "Ο ψηφιακός βοηθός της Kaptain.",
"website": {
"title": "https://kaptain.gr/",
"link": "https://kaptain.gr/"
},
"email": {
"title": "info@kaptain.gr",
"link": "info@kaptain.gr"
},
"phone": {
"title": "+30 22210 32400",
"link": "+30 22210 32400"
},
"termsOfService": {},
"privacyPolicy": {},
"color": "#1C3462",
"variant": "solid",
"headerVariant": "glass",
"themeMode": "light",
"fontFamily": "inter",
"radius": 4,
"feedbackEnabled": false,
"footer": "[⚡ by Botpress](https://botpress.com/?from=webchat)",
"allowFileUpload": false,
"storageLocation": "localStorage"
},
"clientId": "99fbbd7b-1764-43af-a698-79519edeb53e",
"selector": "#webchat"
});
}, false); // load
</script>helpful-lighter-47323
06/10/2025, 1:45 PMprehistoric-airplane-85682
06/10/2025, 1:52 PMprehistoric-airplane-85682
06/10/2025, 1:54 PMhelpful-lighter-47323
06/10/2025, 1:56 PMhelpful-lighter-47323
06/10/2025, 1:57 PMhelpful-lighter-47323
06/10/2025, 2:05 PMhelpful-lighter-47323
06/10/2025, 2:05 PMhelpful-lighter-47323
06/10/2025, 2:05 PMhelpful-lighter-47323
06/10/2025, 3:15 PMwindow.botpress.open() then the webchat opens and runs normally.
So the problem is that for some reason, the events are not called on mobile.stale-balloon-4068
06/17/2025, 11:09 PMclever-minister-92741
07/02/2025, 11:27 AMthankful-accountant-24053
07/14/2025, 5:49 PM